<script setup lang="ts">
import router from '@/router'
function toLogin(){
  router.push('/login')
}

function toRegister(){
  router.push('/register')
}
</script>

<template>
  <div>
    <van-nav-bar title="聊天室">
      <template #left>
        <van-icon name="wap-home-o" size="20" />
      </template>
      <template #right>
        <van-button @click="toLogin" plain hairline type="primary" size="small">登录</van-button>
        <van-button @click="toRegister" plain hairline type="primary" size="small">注册</van-button>
      </template>
    </van-nav-bar>
  </div>
</template>

<style scoped>

</style>
